﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ProjectCodeS.Models
{
    public class UserRoleService : UserRole
    {
        private ProjectCodeSContext db = new ProjectCodeSContext();
        public UserRole GetUserRoleByName(string userrole)
        {
            UserRole tempUserRole = db.UserRoles.FirstOrDefault(userRole => userRole.Name == userrole);
            return tempUserRole;
        }
    }
}